/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.customer.facade.order.authentication;

import info.peigen.hotpot.business.customer.facade.enums.auth.CustomerCertSubject;
import info.peigen.hotpot.business.customer.facade.order.base.CustomerServiceOrderBase;
import info.peigen.hotpot.common.core.domain.Address;
import info.peigen.hotpot.common.core.enums.CertType;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.Date;

import static info.peigen.hotpot.common.core.enums.CertType.Identity_Card;

/**
 * <b>(CustomerApplyPersonalAuthenticationOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/11/15
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class CustomerApplyPersonalAuthenticationOrder extends CustomerServiceOrderBase {
    /** 客户ID */
    String customerId;

    /** 姓名 */
    String name;

    /** 姓名拼音 */
    String englishName;

    /** 认证方式 */
    CustomerCertSubject customerCertSubject;

    /** 身份证号 */
    String number;

    /** 证件类型 */
    @Builder.Default
    CertType customerCertType = Identity_Card;

    /** 身份证照片-正面 */
    String frontImage;

    /** 身份证照片-反面 */
    String backImage;

    /** 手持身份证照片 */
    String holdingIdImage;

    /** 证件有效期始 */
    Date periodOfValidityStart;

    /** 有效期止 */
    Date periodOfValidityEnd;

    /** 是否长期有效 */
    String periodOfValidityLongTerm;

    /** 手持开户申请表 */
    String holdingAccountApplyingImage;

    /** 手持开户申请表（原件） */
    String  holdingAccountApplyingOriginImage;
    /** 地址 */
    Address address;
}
